package mathtest;

import static org.junit.Assert.*;

import math.Operator;

import org.junit.Test;

public class OperatorTest {
	@Test
	public void testIsOperator(){
		boolean test1 = Operator.isOperator('g');
		if(test1 == true){
			fail("Provied character should not be an operator");
		}
		
		for(int i = 0;i<Operator.operators.length;i++){
			if(Operator.isOperator(Operator.operators[i]) == false){
				fail("Provided character should be an operator");
			}
		}
	}

}
